package com.github.catvod.spider.merge;

import java.nio.charset.Charset;

public class W {
  private static final byte[] V0;
  
  private static final Charset h = i.V0;
  
  static {
    V0 = new byte[] { 
        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 
        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 
        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 
        -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 
        -1, -1, -1, 62, -1, 62, -1, 63, 52, 53, 
        54, 55, 56, 57, 58, 59, 60, 61, -1, -1, 
        -1, -2, -1, -1, -1, 0, 1, 2, 3, 4, 
        5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 
        15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 
        25, -1, -1, -1, -1, 63, -1, 26, 27, 28, 
        29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 
        39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 
        49, 50, 51 };
  }
  
  public static byte[] V0(byte[] paramArrayOfbyte, int paramInt1, int paramInt2) {
    if (kb.h(paramArrayOfbyte))
      return paramArrayOfbyte; 
    Tw tw = new Tw(paramInt1);
    int i = paramInt1 + paramInt2 - 1;
    paramInt1 = 0;
    int j = paramInt2 * 3 / 4;
    byte[] arrayOfByte = new byte[j];
    while (tw.h <= i) {
      byte b1 = j(paramArrayOfbyte, tw, i);
      byte b4 = j(paramArrayOfbyte, tw, i);
      byte b3 = j(paramArrayOfbyte, tw, i);
      byte b2 = j(paramArrayOfbyte, tw, i);
      paramInt2 = paramInt1;
      if (-2 != b4) {
        arrayOfByte[paramInt1] = (byte)(b1 << 2 | b4 >>> 4);
        paramInt2 = paramInt1 + 1;
      } 
      int k = paramInt2;
      if (-2 != b3) {
        arrayOfByte[paramInt2] = (byte)((b4 & 0xF) << 4 | b3 >>> 2);
        k = paramInt2 + 1;
      } 
      paramInt1 = k;
      if (-2 != b2) {
        arrayOfByte[k] = (byte)((b3 & 0x3) << 6 | b2);
        paramInt1 = k + 1;
      } 
    } 
    return (paramInt1 == j) ? arrayOfByte : (byte[])j.V0(arrayOfByte, new byte[paramInt1], paramInt1);
  }
  
  public static byte[] h(byte[] paramArrayOfbyte) {
    return kb.h(paramArrayOfbyte) ? paramArrayOfbyte : V0(paramArrayOfbyte, 0, paramArrayOfbyte.length);
  }
  
  private static byte j(byte[] paramArrayOfbyte, Tw paramTw, int paramInt) {
    while (true) {
      int i = paramTw.h;
      if (i <= paramInt) {
        paramTw.h = i + 1;
        i = paramArrayOfbyte[i];
        if (i > -1) {
          byte b = V0[i];
          if (b > -1)
            return b; 
        } 
        continue;
      } 
      return -2;
    } 
  }
  
  private static class Tw {
    int h;
    
    Tw(int param1Int) {
      this.h = param1Int;
    }
  }
}


/* Location:              /Users/hetaiyi/Desktop/my/tech/java/study/aa/temp/temp.jar!/com/github/catvod/spider/merge/W.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       1.1.3
 */